//
//  OnRoadTableViewCell.m
//  TravelToHelp
//
//  Created by lanou3g on 15/11/5.
//  Copyright © 2015年 冯贵宾. All rights reserved.
//

#import "OnRoadTableViewCell.h"

@implementation OnRoadTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self addSubviews];
    }
    return self;
}

- (void)addSubviews
{
    self.titleTXT = [[UILabel alloc] initWithFrame:CGRectMake(5, 5, kScreenWidth - 10, 30)];
    self.titleTXT.backgroundColor = [UIColor grayColor];
    [self addSubview:self.titleTXT];
    
    self.titleDetailTXT = [[UILabel alloc] initWithFrame:CGRectMake(5, 40, kScreenWidth - 10, 150)];
    self.titleDetailTXT.backgroundColor = [UIColor grayColor];
    self.titleDetailTXT.numberOfLines = 0;
//    UIFont *font = [UIFont fontWithName:@"Arial" size:12];
//    CGSize size = CGSizeMake(kScreenWidth, 2000);
//    CGSize labelSize = [self.titleDetailTXT.text sizeWithFont:(UIFont *)]
    
    [self addSubview:self.titleDetailTXT];
    
    self.IMGView = [[UIImageView alloc] initWithFrame:CGRectMake(5, 200, kScreenWidth - 10, 80)];
    self.IMGView.backgroundColor = [UIColor orangeColor];
    [self addSubview:self.IMGView];
    
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
